package com.crm.common.enums;

/**
 * 业务操作类型枚举
 */
public enum BusinessType {
    INSERT(1, "新增"),
    UPDATE(2, "修改"),
    DELETE(3, "删除"),
    GRANT(4, "授权"),
    EXPORT(5, "导出"),
    IMPORT(6, "导入"),
    FORCE(7, "强退"),
    GENCODE(8, "生成代码"),
    CLEAN(9, "清空数据"),
    LOGIN(10, "登录"),
    LOGOUT(11, "退出"),
    OTHER(0, "其他");
    
    private final int code;
    private final String desc;
    
    BusinessType(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    
    // getter方法


    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}